// 用户管理
import {
    ajaxPostBack, ajaxPost
} from '@/utils/data/request'

// 登录
export function login(params: any) {
    return ajaxPostBack('sess/check-login', params)
}

// 权限
export function access(params: any) {
    return ajaxPostBack('sess/user-role', params, {
        cookies: ['yard_sn']
    })
}

// 详情
export function info() {
    return ajaxPost('sess/user-info')
}

// 修改密码
export function pwd(params: any) {
    return ajaxPost('sess/edit-pwd', params, { successMessage: true })
}

